package com.codeduck.pojo.dto;

import javax.validation.constraints.NotBlank;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "用户密码DTO")
public class CodeDuckUserPwdDTO {

    @NotBlank(message = "用户ID不能为空")
    @ApiModelProperty(value = "用户ID，唯一标识")
    private String id;

    @ApiModelProperty(value = "旧密码")
    private String password;

    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码")
    private String newPassword;
}

